package com.polymorphic多态.练习题.练习01;

public class Worker extends Employee{
    public Worker(String name, double salary) {
        super(name, salary);
    }

    public void work() {
        System.out.println("员工" + getName() + "正在工作");
    }

    public String getAnnual(){
        return "员工："+super.getAnnual();
    }
}
